﻿using Simple.Admin.System.Enums;
using System;
using Volo.Abp.Domain.Entities;

namespace Simple.Admin.System;

/// <summary>
/// 权限菜单实体
/// </summary>
public class PermissionMenuEntity : Entity<Guid>
{
    /// <summary>
    /// 菜单提供者名字，(User,Role)
    /// </summary>
   public required virtual PermissionProviderType ProviderType { get; set; }

    /// <summary>
    /// 提供者值(用户Id角色Id)
    /// </summary>
    public required virtual string ProviderKey { get; set; }

    /// <summary>
    /// 菜单ID（被授权的目标菜单）
    /// </summary>
    public required virtual Guid MenuId { get; set; }
}
